import { IsNotEmpty, IsOptional } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
export class CreatePhotosTypeDto {
    @ApiProperty()
    @IsNotEmpty({
        message: '名称不能为空',
    })
    title: string;
    @ApiProperty()
    @IsNotEmpty({
        message: '描述不能为空',
    })
    desc: string;
    @ApiProperty()
    @IsOptional()
    orderIndex?: number;
}
